<?php
class MissionAction extends MemberAction {
    public function index() {
		
		$member_id = $this->memberInfo['id'];
		$db = D('Mission');
		$this->initView();
		$db -> _list($this->view,array('member_id' => $member_id, 'site_id' => __SITEID__), 'id desc', 10);
		
		$ModulesDB = D('Modules');
		$this->display();
		
    }
	
	
	public function read(){
		$this->initView();
		$id = $this->_get('id');
		$this->info = D('Mission') -> _getOne($this->view, $id);
		$ModulesDB = D('Modules');
		$this->display();
	}
}